package org.bluedream.core.module.sys.entity.dict;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import org.bluedream.comm.base.OrgPageEntity;


/**
 * @ClassName DictData
 * @Description TODO
 * @Author foxsand
 * @Data 2021-09-09 16:23
 * @Version
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@TableName(value = "SYS_DICT_DATA")
public class DictData extends OrgPageEntity<DictData> {
    private static final long serialVersionUID = -7979150775926456188L;

    @NonNull
    private String dictCode;
    private String description;
    @NonNull
    private String isSys;
    @NonNull
    private String dictValue;
    @NonNull
    private String dictType;
    @NonNull
    private String dictLabel;
    private Integer sort;

    public DictData(long limit , long pageSize){
        this.limit = limit;
        this.page = pageSize;
    }

    public DictData(String dictType , String orgCode) {
        this.dictType = dictType;
        this.orgCode = orgCode;
    }


}
